package cn.qin.xhangapi.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 系统用户账户表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "sys_users")
public class SysUsers {
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "is_super")
    private Integer isSuper;

    @TableField(value = "role_id")
    private Long roleId;

    @TableField(value = "avatar_url")
    private String avatarUrl;

    @TableField(value = "account")
    private String account;

    @TableField(value = "`password`")
    private String password;

    @TableField(value = "salts")
    private String salts;

    @TableField(value = "real_name")
    private String realName;

    @TableField(value = "`status`")
    private Integer status;

    @TableField(value = "remarks")
    private String remarks;

    @TableLogic
    @TableField(value = "deleted")
    private Integer deleted;

    /**
     * 关联角色组对象
     */
    @TableField(exist = false)
    private SysRole sysRole;
}
